package com.budwk.app.sqfw.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import com.budwk.starter.database.model.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;

/**
 * @author ZY.Wang
 * @since 2023/6/19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table("shequ.sqfw_text_replace")
@Comment("语音识别回调")
@ApiModel(description = "文字替换")
public class Sqfw_textReplace extends BaseModel implements Serializable {

    @Column
    @Name
    @Comment("编号")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(uu32 = true)
    private String id;

    @Column("original_text")
    @Comment("原始字符串")
    @ApiModelProperty(description = "原始字符串")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String originalText;

    @Column("replace_text")
    @Comment("替换的字符串")
    @ApiModelProperty(description = "替换的字符串")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String replaceText;

    @Column("replace_text_length")
    @Comment("替换的字符串长度")
    @ApiModelProperty(description = "替换的字符串长度")
    @ColDefine(type = ColType.INT, width = 20)
    private Integer replaceTextLength;

    @Column
    @Comment("类型 audio语音 img图片")
    @ApiModelProperty(description = "类型 audio语音 img图片")
    @ColDefine(type = ColType.VARCHAR, width = 200)
    private String type;

    @Column("original_text_sample")
    @Comment("原始字符串样例")
    @ApiModelProperty(description = "原始字符串样例")
    @ColDefine(type = ColType.TEXT, width = 200)
    private String originalTextSample;

}
